<!DOCTYPE html>
<html>
<head>
    <title>Table to Excel</title>
    <meta charset="UTF-8">
    <style>
        :root {
            --primary-color: #4361ee;
            --primary-hover: #3a56d4;
            --text-color: #2b2d42;
            --bg-color: #ffffff;
            --border-radius: 8px;
            --box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        }

        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background: var(--bg-color);
            color: var(--text-color);
            margin: 0;
            padding: 0;
            min-width: 220px;
        }

        .container {
            padding: 16px;
            text-align: center;
        }

        .title {
            font-size: 18px;
            font-weight: 600;
            margin: 0 0 16px 0;
            color: var(--text-color);
            position: relative;
            padding-bottom: 8px;
        }

        .title::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 3px;
            background: var(--primary-color);
            border-radius: 3px;
        }

        .export-button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 500;
            border-radius: var(--border-radius);
            cursor: pointer;
            width: 100%;
            transition: all 0.2s ease;
            box-shadow: 0 2px 6px rgba(67, 97, 238, 0.3);
        }

        .export-button:hover {
            background: var(--primary-hover);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
        }

        .export-button:active {
            transform: translateY(0);
        }

        #status {
            margin-top: 12px;
            font-size: 12px;
            color: #666;
            min-height: 18px;
        }

        /* 加载动画 */
        .loading {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-right: 8px;
            vertical-align: middle;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }
    </style>
</head>
<body>
<div class="container">
    <h1 class="title">表格转Excel</h1>
    <button class="export-button" id="exportBtn">
        <span id="buttonText">开始转换</span>
    </button>
    <div id="status"></div>
</div>
<script src="popup.js"></script>
</body>
</html>